Packetery\Module\Checkout D

Total Complexity 160
Dependencies 33
Dependents 3
Total lines 1,172
Lines of code 643
Logical lines of code 329
Comment lines 256
Methods 40
Properties 14

Methods 40

Method Rating Maintainability Complexity Lines of code
validateCheckoutData()
C
34 23 90
updateOrderMeta()
B
39 18 62
calculateFees()
A
44 11 46
filterPaymentGateways()
A
47 11 35
getPostDataIncludingStoredData()
A
50 11 31
getTaxClassWithMaxRate()
A
49 9 33
getShippingRates()
A
48 8 33
isShippingRateRestrictedByProductsCategory()
S
55 6 20
getCODSurcharge()
S
60 6 13
createSettings()
S
44 2 44
register_hooks()
S
54 3 21
renderWidgetButtonAfterShippingRate()
S
57 3 18
isAgeVerification18PlusRequired()
S
63 4 10
getDisallowedShippingRateIds()
S
61 3 12
renderWidgetButtonTableRow()
S
59 2 15
isCodPaymentMethod()
S
74 3 4
__construct()
S
58 1 16
updateShippingPackages()
S
70 2 6
isHomeDeliveryOrder()
S
72 2 5
isPickupPointOrder()
S
72 2 5
getChosenMethod()
S
68 2 7
getChosenPaymentMethod()
S
70 2 7
calculateShipping()
S
67 2 8
getCarrierId()
S
69 2 7
getCarrierIdFromShippingMethod()
S
71 2 6
isPickupPointCarrier()
S
71 2 6
getFormattedShippingMethodName()
S
70 2 6
getCartWeightKg()
S
67 2 8
getCustomerCountry()
S
69 2 7
updateShippingRates()
S
69 2 6
getPickupPointValidateRequest()
S
61 1 14
renderHiddenInputFields()
S
63 1 11
getRateCost()
S
78 1 3
createShippingRate()
S
66 1 9
getCartContentsTotalIncludingTax()
S
79 1 3
getCartPrice()
S
80 1 3
removeShippingMethodPrefix()
S
78 1 3
isPacketeryShippingMethod()
S
75 1 4
isFreeShippingCouponApplied()
S
80 1 3
getTransientNamePacketaCheckoutData()
S
80 1 3